<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="${ctx}/system/org/list" method="POST">
        <input type="hidden" name="parentIds" value="${org.parentIds!}">
        <input type="hidden" name="orgId" value="${org.orgId!}">
        <input type="hidden" name="userId" value="${org.userId!}">
        <div class="bjui-searchBar">
            <label>机构编码：</label><input type="text" name="orgCode" value="${org.orgCode!}"/>
            <label>机构名称：</label><input type="text" name="orgName" value="${org.orgName!}"/>
            <label>状态:</label>
            <@h.select name="available" list=fn.getDicValue('AVAILABLE_STATUS') value=org.available defaultOptions= {"":"全部"}/>
            <button type="submit" class="btn-default" data-icon="search">查询</button>
            <div class="pull-right">
                <div class="btn-group">
                    <button type="button" class="btn-default dropdown-toggle" data-toggle="dropdown" data-icon="copy">功能操作<span class="caret"></span></button>
                    <ul class="dropdown-menu right" role="menu">
                        <li></li>
                    </ul>
                </div>
            </div>
        </div>
    </form>
</div>
<div class="bjui-pageContent tableContent">
    <table data-toggle="tablefixed"  data-width="100%">
        <thead>
        <tr>
            <th>机构编码</th>
            <th>机构名称</th>
            <th>机构类型</th>
            <th>状态</th>
            <th>创建时间</th>
            <th align="center">操作</th>
        </tr>
        </thead>
        <tbody>
        <#list pageInfo.list as org>
            <tr data-id="${org.orgId}">
                <td>${org.orgCode}</td>
                <td>${org.orgName}</td>
                <td>${fn.getDicValue('ORG_TYPE_CODE',org.orgTypeCode)!}</td>
                <td>${fn.getDicValue('AVAILABLE_STATUS',org.available)!}</td>
                <td>${org.createTime ? datetime}</td>
                <td>
                	<#if org.orgTypeCode!='ROOT'>  
                	<a href="${ctx}/system/org/${org.orgId}/edit" class="btn btn-default btn-sm" data-toggle="dialog" data-id="dialog-mask">编辑</a>
                    <a href="${ctx}/system/org/${org.orgId}/delete" class="btn btn-default btn-sm" data-toggle="doajax" data-confirm-msg="确定要删除吗？" data-callback="deleteCallback">删除</a>
                	</#if>
                    <a href="${ctx}/system/org/create?parentId=${org.orgId}" class="btn btn-default btn-sm" data-toggle="dialog" data-id="dialog-mask">添加子机构</a>
                </td>
            </tr>
        </#list>
        </tbody>
    </table>
</div>
<@h.pageFooter />

